package server.business.controller;

import server.business.pojo.OrderBloodState;
import server.business.service.OrderBloodStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/orderBloodState")
public class OrderBloodStateController {
    @Autowired
    OrderBloodStateService orderBloodStateService;

    @RequestMapping("/normal/query")
    @ResponseBody
    public List<OrderBloodState> queryData(){
        List<OrderBloodState> list = orderBloodStateService.queryData();
        return list;
    }
}
